package com.umedcn.model;

import java.io.Serializable;
import java.sql.Date;
import java.util.List;

/**
 * Created by jiangadam on 2017/7/18.
 */
public class User implements Serializable{
    private Integer id;
    private String username;
    private String mobile;
    private Date created;
    private List<Post> posts;

    public List<Post> getPosts() {
        return posts;
    }

    public void setPosts(List<Post> posts) {
        this.posts = posts;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", mobile='" + mobile + '\'' +
                ", created=" + created +
                ", posts=" + posts +
                '}';
    }
}
